package com.weds.edpf.core.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.List;

import com.weds.core.base.BaseService;
import com.weds.edpf.core.mapper.NTtCardMapper;
import com.weds.edpf.core.entity.NTtCardEntity;

/**
 * @Author sxm
 * @Description NTtCard管理
 * @Date 2020-06-16
 */
@Service
public class NTtCardService extends BaseService {

    @Autowired
    private NTtCardMapper nTtCardMapper;

    private Logger log = LogManager.getLogger();

    public int deleteByPrimaryKey(Integer ttXh) {
        return nTtCardMapper.deleteByPrimaryKey(ttXh);
    }

    public int insert(NTtCardEntity record) {
        return nTtCardMapper.insert(record);
    }

    public int insertSelective(NTtCardEntity record) {
        return nTtCardMapper.insertSelective(record);
    }

    public NTtCardEntity selectByPrimaryKey(Integer ttXh) {
        return nTtCardMapper.selectByPrimaryKey(ttXh);
    }

    public int updateByPrimaryKeySelective(NTtCardEntity record) {
        return nTtCardMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NTtCardEntity record) {
        return nTtCardMapper.updateByPrimaryKey(record);
    }

    public List<NTtCardEntity> selectListByEntity(NTtCardEntity record) {
        return nTtCardMapper.selectListByEntity(record);
    }


    public int deleteBatchByKeys(List<NTtCardEntity> list) {
        return nTtCardMapper.deleteBatchByKeys(list);
    }

    public int insertBatch(List<NTtCardEntity> list) {
        return nTtCardMapper.insertBatch(list);
    }

    public NTtCardEntity selectCardType(NTtCardEntity record) {
        return nTtCardMapper.selectCardType(record);
    }

    public List<NTtCardEntity> selectByTtLx(Integer ttLx) {
        return nTtCardMapper.selectByTtLx(ttLx);
    }

    public NTtCardEntity selectByCardServial(String cardSerial) {
        return nTtCardMapper.selectByCardServial(cardSerial);
    }



}
